package com.mljr.example.bean;

import android.support.v4.app.Fragment;

import com.ctakit.sdk.app.widget.tab.home.SelectModel;

/**
 * Created by naite.zhou on 16/5/11.
 */
public class TabModel<FragmentType extends Fragment> implements SelectModel {
    private int id;
    private String title;
    private int iconId;
    private boolean isRedPoint;
    private int redPointCount;
    private boolean select;
    private  Class<FragmentType> fragmentClass;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getIconId() {
        return iconId;
    }

    public void setIconId(int iconId) {
        this.iconId = iconId;
    }

    public boolean isRedPoint() {
        return isRedPoint;
    }

    public void setRedPoint(boolean redPoint) {
        isRedPoint = redPoint;
    }

    public int getRedPointCount() {
        return redPointCount;
    }

    public void setRedPointCount(int redPointCount) {
        this.redPointCount = redPointCount;
    }

    @Override
    public boolean isSelected() {
        return select;
    }

    @Override
    public void setSelected(boolean selected) {
        select = selected;
    }

    @Override
    public Class<FragmentType> getFragmentClass() {
        return fragmentClass;
    }

    public void setFragmentClass(Class<FragmentType> fragmentClass) {
        this.fragmentClass = fragmentClass;
    }
}
